package com.powernode.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.powernode.domain.ProdProp;

import java.util.List;

public interface ProdPropService extends IService<ProdProp> {
    /*
     * 多条件分页查询商品规格
     * @author RenBoQing
     * @date 2024/7/27 20:51
     * @param current
     * @param size
     * @param propName
     * @return com.baomidou.mybatisplus.extension.plugins.pagination.Page<com.powernode.domain.ProdProp>
     */
    Page<ProdProp> loadProductSpecPage(Long current, Long size, String propName);
     /*
      * 新增商品规格
      * @author RenBoQing
      * @date 2024/7/27 21:57
      * @param productSpec
      * @return boolean
      */
    boolean saveProductSpec(ProdProp productSpec);
     /*
      * 修改商品规格
      * @author RenBoQing
      * @date 2024/7/27 22:28
      * @param productSpec
      * @return boolean
      */
     boolean updateProductSpec(ProdProp productSpec);

    /*
     * 删除商品规格
     * @author RenBoQing
     * @date 2024/7/27 22:37
     * @param propId
     * @return boolean
     */
    boolean removeProductSpecById(Long propId);

    /*
     *查询商品规格详情属性集合
     * @author RenBoQing
     * @date 2024/7/28 12:40
     * @return java.util.List<com.powernode.domain.ProdProp>
     */
    List<ProdProp> queryProductSpecList();
}